import { request, config } from 'utils'

const { api: {
  dashboard, distributor
} } = config

/**
 * 获取信息
 */
export async function getInfo() {
  const url = `${dashboard}`
  return request({ url: url, method: 'GET' })
}
export async function updateAddress(id,params = {}) {
  const url = `${distributor}/${id}/area/update`
  return request({ url: url, method: 'POST', data: params })
}
